<?php

/**
 * Subclass for representing a row from the 'kernel.tercero' table.
 *
 * 
 *
 * @package plugins/kernel/lib.model
 */ 
class KernelTercero extends BaseKernelTercero
{
	/**
	 * Initializes internal state of KernelTercero object.
	 * @see        parent::__construct()
	 */
	public function __construct()
	{
		// Make sure that parent constructor is always invoked, since that
		// is where any default values for this object are set.
		parent::__construct();
	}


	public function __toString()
	{
		return $this->getKernelTipoIdentificacion()." ".$this->getIdentificacion()." - ".$this->getPrimerApellido()." ".$this->getSegundoApellido()." ".$this->getNombre();
	}

	public function getNombreCompleto()
	{
		return $this->getPrimerApellido()." ".$this->getSegundoApellido()." ".$this->getNombre();
	}

	public function getTelefono()
	{
		return "implementar";
	}

	public function getDireccion()
	{
		return "implementar direccion";
	}
	
	// retorna array con los datos ti, numero id, nombre, email
	public function toArrayPdf()
	{
		$result = array(
				$this->getKernelTipoIdentificacion(),
				$this->getIdentificacion(),
				$this->getNombreCompleto(),
				$this->getNombreCompleto(),
				$this->getEmail()
			);
		return $result;
	}
	

}
